import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询工位
export const partModelGroupSql = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/maintainWorkType`, { params });
// 新增工位
export const addMaintainWorkType = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/basedata/maintainWorkType/Save`, params);
// 更新工位
export const updateMaintainWorkType = (params, id) => axios.put(`${SERVER.DMSCLOUD_REPAIR}/basedata/maintainWorkType/update/${id}`, params);

export const selectWorkGroupDicts = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/maintainWorkType/dicts/select`, params);

// 根据工位类别获取班组信息
export const workGroups = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/workgroups/dicts/select`, { params });
